package com.bes.aiProject.controller;

import com.bes.aiProject.service.AnomalyCheckService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.time.LocalDateTime;

@Controller
@RequestMapping("controller")
@ResponseBody
public class MainTestController {
    @Autowired
    AnomalyCheckService anomalyCheckService;

    @GetMapping("/test1")
    public void test1() {
        LocalDateTime currentTime = LocalDateTime.now();
        anomalyCheckService.AnomalyCheck(currentTime);
    }
}
